package com.rub.android.ui.activity

import android.net.Uri
import android.os.Bundle
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import java.io.File

class PreviewActivity :AppCompatActivity(){


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val img = ImageView(this)
        val path = intent.getStringExtra("path")
        if (path != null) {
            img.setImageURI(Uri.fromFile(File(path)))
        }
        setContentView(img)
    }


}